import {
  SAVE_BIOLOGICAL_CQ_DATA, SAVE_BIOLOGICAL_CQ_DATA_,
  SAVE_BIOLOGICAL_GROUPS_LIST, SAVE_BIOLOGICAL_TABLE_DATA,
  SAVE_CHART_OPTION,
  SAVE_EXPERIMENT_SETTING,
  SAVE_GENE_EXPRESSION_TABLE_LIST,
  SAVE_GENE_SETTING,
  SAVE_TABLE_DATA,
  SAVE_TARGET_CQ_DATA,
  SAVE_TECHNICAL_TABLE_DATA
} from "./constants";

export const saveGeneSetting = geneSetting => ({
  type: SAVE_GENE_SETTING,
  geneSetting
});

export const saveExperimentSetting = experimentSetting => ({
  type: SAVE_EXPERIMENT_SETTING,
  experimentSetting
});

export const saveChartOption = chartOption => ({
  type: SAVE_CHART_OPTION,
  chartOption
});

export const saveGeneExpressionTableList = geneExpressionTableList => ({
  type: SAVE_GENE_EXPRESSION_TABLE_LIST,
  geneExpressionTableList
});

export const saveBiologicalGroupsList = biologicalGroupsList => ({
  type: SAVE_BIOLOGICAL_GROUPS_LIST,
  biologicalGroupsList
});

export const saveTargetCqData = targetCqData => ({
  type: SAVE_TARGET_CQ_DATA,
  targetCqData
});

export const saveBiologicalCqData = biologicalCqData => ({
  type: SAVE_BIOLOGICAL_CQ_DATA,
  biologicalCqData
});

export const saveTableData = tableData => ({
  type: SAVE_TABLE_DATA,
  tableData
});

export const saveTechnicalTableData = technicalTableData => ({
  type: SAVE_TECHNICAL_TABLE_DATA,
  technicalTableData
});

export const saveBiologicalTableData = biologicalTableData => ({
  type: SAVE_BIOLOGICAL_TABLE_DATA,
  biologicalTableData
});